#define _CRT_SECURE_NO_WARNINGS 1
#include"SLTlist.h"

test1()
{
	SLTNode* plist = NULL;
	SLTAddBack(&plist, 1);
	SLTAddBack(&plist, 2);
	SLTAddBack(&plist, 3);
	SLTAddBack(&plist, 4);
	SLTPrint(plist);

	SLTDelBack(&plist);
	SLTPrint(plist);

	SLTAddPop(&plist, 99);
	SLTPrint(plist);
	SLTAddPop(&plist, 88);
	SLTPrint(plist);
	SLTAddPop(&plist, 77);
	SLTPrint(plist);
	SLTAddPop(&plist, 66);
	SLTPrint(plist);

	SLTDelPop(&plist);
	SLTPrint(plist);

	SLTNode* pos = SLTFindlist(plist, 2);
	printf("%p\n", pos);
	SLTAddPoint(&plist, pos, 999);
	SLTPrint(plist);

	SLDelPoint(&plist, pos);
	SLTPrint(plist);

	SLTDestroy(&plist);
	SLTPrint(plist);

}

int main()
{
	test1();

	return 0;
}